const fs = require('fs');
const gm = require('gm');
const path = require('path');
const exec = require('child_process').exec;
const dir_sources = 'D:/WORK/client_wbqj/assets/resources/gl_zh/res/ui/activity/pokeBalloon';

const utils = require('./utils');


let files = fs.readdirSync(dir_sources);
files.forEach(_f => {
    if (path.extname(_f) == '.png')
        utils.compressImg(path.join(dir_sources, _f))
})